package com.aaa.order.dao;

import com.aaa.entity.AccountOrder;
import com.aaa.entity.Order;
import com.aaa.vo.AccountOrderVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @InterfaceName OrderDao
 * @Description
 * @Author 崔灿
 * @LastChangeDate 2023/3/3 9:31
 * @Version v1.0
 */

public interface OrderDao extends BaseMapper<Order> {
    List<Order> selectAll(Order order);

    /**
     * 查询客户未支付的订单
     * @param memberId
     * @return
     */
    List<Order> selectByMemberId(@Param("memberId") Integer memberId, @Param("state") Integer state);

    /**
     * 查询客户已支付的订单
     * @param
     * @return
     */
    List<AccountOrder> findByMemberId(AccountOrderVo accountOrderVo);

    Integer concelOrder(String msg);
}
